<?php

namespace App\Http\Controllers\Laravel\Request;

use App\BCAM\CMVariable\CMVariable;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;

class HttpController extends Controller
{
    //
    public function noExistHasError(Request $request){
        //在$index->$action();用以上的注入方式,要在web.php做处理才能正常注入
        //$request = new Request();//$request['noExist'],$request,$request->get('noExist') 接受不到 noExist 不存在直接用$request['noExist'] 也不会报错 http://www.web.com/Front/public/laravel/request/http/noExistHasError?noExist=2
        CMVariable::compareRes($request['noExist'],$request,Input::get('noExist'),$_GET,$request->get('noExist'));
    }
}
